home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Prg / BMP2PIC.ZIP / BMP2PIC.TXT < prev    next >
Text File  |  1997-09-14  |  1KB  |  25 lines

  1.     - Simulated Keyboard Using One button Control -
  2.  
  3.     This simulated keyboard would normally use one button control per key.  With a
  4. large number of keys, each time the keyboard is repainted/displayed, the lag between each
  5. button being repainted creates a ripple effect on the screen.  To make the keyboard appear
  6. instantly without the ripple, the number of button controls must be reduced.
  7.  
  8.     Another requirement was that the focus not be taken away from the text control in
  9. order that the text could be input by different input devices (regular keyboard,
  10. scanning device, mouse).  The radio button is one of the few controls that can be used
  11. without taking the focus.
  12.  
  13.     This program shows a method of using a single button to provide the functionality of
  14. many by moving it to each new key position as the mouse is moved over the keyboard
  15. picture, thus always being ready to accept a mouse event.  As the button is moved the area
  16. of the screen it will next cover is copied to its Picture property so when the button is
  17. pressed, the button can take care of offsetting the picture to make the key appear depressed.
  18.  
  19.     Any bugs, suggestions, or other comments are welcome and examples of your unique
  20. solutions to programming challenges are appreciated.
  21.  
  22. Ron Edwards
  23. PRISM, Hiroshima, Japan
  24. CIS:  71125,534
  25.